package junk;

import org.openqa.selenium.WebDriver;

import org.testng.annotations.Test;
import tools.UseBrowser_Remote;

import java.io.IOException;
import java.net.MalformedURLException;

public class UseBrowser_Remote_test extends UseBrowser_Remote {

    UseBrowser_Remote ubr=new UseBrowser_Remote();
    WebDriver wd;

    @Test
    public void test_setupOpear(){
        try {
            String url="http://www.163.com";
         //wd= ubr.setupFirefoxRemote();
            wd=ubr.setupChromeRemote();
            wd.get(url);
            System.out.println("tile:"+wd.getTitle());
            Thread.sleep(2000);
            wd.close();


        } catch (IOException e) {
            e.printStackTrace();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }



}
